import { defineStore } from "pinia";

export const useTestStore = defineStore('testStore',{

    state: () => ({ count: 1 }),
    actions:{
        add(){
            this.count++
        }
    },
    getters:{
        getCount: (state) => state.count + 1,//响应式依赖count变化
    }

})
